package com.jrzh.mvc.service.sys;

import com.jrzh.common.exception.ProjectException;
import com.jrzh.framework.base.service.BaseServiceI;
import com.jrzh.framework.bean.ResultBean;
import com.jrzh.framework.bean.SessionUser;
import com.jrzh.mvc.model.sys.UserModel;
import com.jrzh.mvc.search.sys.UserSearch;
import com.jrzh.mvc.view.sys.UserPasswordView;
import com.jrzh.mvc.view.sys.UserView;

public interface UserServiceI extends BaseServiceI<UserModel, UserSearch, UserView>{

	public String findUserNamesByUserIds(String ids, String reg) throws ProjectException;

	public String[] findUserIdsByRoleId(String roleId) throws ProjectException;

	public void addUser(UserView view, SessionUser user) throws ProjectException;

	void editUser(String userId, UserView view, SessionUser user)
			throws ProjectException;

	ResultBean changeStatus(String userId, SessionUser user)
			throws ProjectException;

	ResultBean resetPassword(String userId, SessionUser user)
			throws ProjectException;
	
	void changePassword(String userId, UserPasswordView view, SessionUser user)
			throws ProjectException;

}
